package com.study.my;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class WebController {
    @GetMapping("/")
    public String toIndex(ModelMap map){
        map.addAttribute("msg","www.baidu.com");
        return "index";
    }
}
